<div class="newspost">
    <form action="<?php echo $ActionURL; ?>" method="post" id="bbcodeeditor">
        <div class="header" style="width:80%; margin:0 auto;margin-top: 20px; margin-bottom: 5px;height: 28px; padding-top: 3px;">
             <label style="font-size: 12px;" for="title">News Title: </label><input size="128" type="text" name="title" id="title_text"/><br/>
        </div>
        <div class="newspostbody" style="padding-top: 0px; padding-bottom: 0px;width:80%; margin:0 auto;margin-bottom: 5px">
            <ul id="toolset">
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'b'); return false;"><strong>B</strong></li>
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'i'); return false;"><i>I</i></li>
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'u'); return false;"><u>U</u></li>
                <li onMouseUp="queryValue('size=', new Array('Insert the font size (1 = normal, 2 = twice as big, 0.5 = 1/2 as big etc)')); return false;"><span style="font-size:1.3em">font-size</span></li>
                <!--<li onMouseUp="queryValue('img=', new Array('Enter a path to an image'), false); return false;">Img</li>-->
                <li onMouseUp="fileUploader(); return false;">Img</li>
                    
                <li onMouseUp="queryValue('url=', new Array('Enter a URL to link to')); return false;"><a style="color:#000"href="#">Link</a></li>
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'q'); return false;"><q>Inline Quote</q></li>
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'blockquote'); return false;">Block Quote</li>
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'pre'); return false;">Pre-formatted</li>
                <select onChange="selectColourCode(); return false;" id="colourcode">
                      <option value="">Choose Colour...</option>
                      <option value=""></option>
                      <option value="black">black</option>
                      <option value="silver">silver</option>
                      <option value="gray">gray</option>
                      <option value="white">white</option>
                      <option value="maroon">maroon</option>
                      <option value="red">red</option>
                      <option value="purple">purple</option>
                      <option value="fuchsia">fuchsia</option>
                      <option value="green">green</option>
                      <option value="lime">lime</option>
                      <option value="olive">olive</option>
                      <option value="yellow">yellow</option>
                      <option value="navy">navy</option>
                      <option value="blue">blue</option>
                      <option value="teal">teal</option>
                      <option value="aqua">aqua</option>
                 </select>
                
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'left'); return false;">left</li>
                <li onMouseUp="insertBBCodeTag(document.getElementById('body_text'), 'right'); return false;">right</li>
            </ul>
        </div>
        <textarea type="text" name="body" multi="multi" rows="15" id="body_text" value="<?php echo $currentBBCode; ?>"></textarea><br/>
        <input type="button" name="fPreview" value="Preview" onClick="previewBBCode(document.getElementById('body_text').value)" />
        <input type="submit" name="fSubmit" value="Create" />        
    </form>
    <div class="black_overlay" id="fadebox" onClick="unpreview();"></div>
    <form enctype="multipart/form-data" action="<?php PrintURL("FileProcessor", "UploadFiles"); ?>" method="POST" id="flash_uploader" class="a_form" style="display:none;">
        <fieldset>
            <legend>Upload your file</legend>
            <ol>
                <li id="example3">
                    <label for="example3_field">Choose a file to upload:</label>
                    <input name="myFile3" id="submit_field"  type="file" />
                </li>
            </ol>
        </fieldset>
        <input type="submit" name="submit" value="Upload File" />
    </form>
</div>